using System.Collections;
using UnityEngine;

public class INT_ChangePlayerVariable : MonoBehaviour
{
	public PlayerManager PlayerManager;

	public object PlayerManagerObject;

	public string BoolToFind;

	public bool WhatToSetUponInteract;

	public bool CanUse = true;

	public void RUN()
	{
		//IL_004e: Unknown result type (might be due to invalid IL or missing references)
		//IL_0053: Unknown result type (might be due to invalid IL or missing references)
		if (BoolToFind == "SpeedrunText")
		{
			CanUse = false;
			((MonoBehaviour)this).StartCoroutine(DebounceInteract());
			return;
		}
		Debug.LogWarning((object)("No bool of that name! | " + ((Object)this).name + " " + ((object)((Component)this).transform.position/*cast due to .constrained prefix*/).ToString() + " " + Time.time));
	}

	public IEnumerator DebounceInteract()
	{
		yield return (object)new WaitForSeconds(0.3f);
		CanUse = true;
	}
}
